<script src="../../resources/js-test.js"></script>
<script>
jsTestIsAsync = true;
description("Moving animating svg document to other iframe should not crash.");

var otherSVG = null; // read from resources/import-other-svg.svg
function loadedSVGToBeMoved()
{
    debug("loaded SVG to be moved");

    var source = document.getElementById("source");
    otherSVG = source.contentDocument.documentElement;

    var target = document.getElementById("target");
    target.src = "resources/import-other-svg.svg";
    target.onload = finishJSTest;
}
</script>
<iframe id="source" src="resources/svg-with-animate.svg" onload="loadedSVGToBeMoved()"></iframe>
<iframe id="target"></iframe>
<p>Test pass if no crash.</p>
